<!DOCTYPE html>

<html xmlns:th="https://www.thymeleaf.org" th:replace="~{fragments/layout :: layout (~{::body},'home')}">

<body>
<p>首页</p>

<h2>欢迎</h2>
<div class="row">
    <div class="col-md-12">
        <img class="img-responsive" src="resources/images/pets.png" th:src="@{/resources/images/pets.png}"/>
    </div>
</div>

</body>

</html>